import request from '@/utils/request'

// 获取签到审计日志列表
export function getSignAuditLogList(data) {
  return request({
    url: '/api/campus/TrainSignAuditLog',
    method: 'GET',
    params: data
  })
}

// 创建签到审计日志
export function createSignAuditLog(data) {
  return request({
    url: '/api/campus/TrainSignAuditLog',
    method: 'POST',
    data
  })
}

// 批量创建签到审计日志
export function batchCreateSignAuditLog(data) {
  return request({
    url: '/api/campus/TrainSignAuditLog/batch',
    method: 'POST',
    data
  })
}

// 获取签到审计日志详情
export function getSignAuditLogDetail(id) {
  return request({
    url: `/api/campus/TrainSignAuditLog/${id}`,
    method: 'GET'
  })
}

// 删除签到审计日志
export function deleteSignAuditLog(ids) {
  return request({
    url: '/api/campus/TrainSignAuditLog',
    method: 'DELETE',
    data: { ids }
  })
}

// 导出签到审计日志
export function exportSignAuditLog(data) {
  return request({
    url: '/api/campus/TrainSignAuditLog/export',
    method: 'POST',
    data,
    responseType: 'blob'
  })
}

// 获取操作统计信息
export function getSignAuditStats(data) {
  return request({
    url: '/api/campus/TrainSignAuditLog/stats',
    method: 'GET',
    params: data
  })
}